package cn.zhentao.service.impl;

import cn.zhentao.dao.AfterSalesDao;
import cn.zhentao.pojo.Logistics;
import cn.zhentao.pojo.Maintenance;
import cn.zhentao.service.AfterSalesService;
import cn.zhentao.vo.MaintenanceVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AfterSalesServiceImpl implements AfterSalesService {
    @Autowired
    private AfterSalesDao afterSalesDao;
    @Override
    public List<Logistics> findlogisticsAll() {
        return afterSalesDao.findlogisticsAll();
    }

    @Override
    public int insertmaintenance(Maintenance maintenance) {
        return afterSalesDao.insertmaintenance(maintenance);
    }

    @Override
    public int updateOrderState(int maintenanceOrder) {
        return afterSalesDao.updateOrderState(maintenanceOrder);
    }

    @Override
    public List<MaintenanceVo> findAllMaintenanceVo(int uid) {
        return afterSalesDao.findAllMaintenanceVo(uid);
    }
}
